Fix visibility of error handlers